'use strict'


import Http from '../kit/HttpKit'
import Api from './Api'

/**
*  系统配置模块
**/

const URL_ORDER_CONFIG = Api.API_URL + '/systemConfig/orderConfig';
const URL_MODIFY_ORDER_CONFIG = Api.API_URL + '/systemConfig/modifyOrderConfig';
const URL_COMPLAIN_LIST = Api.API_URL + '/systemConfig/complainList';
const URL_MARK_PROCESSED = Api.API_URL + '/systemConfig/markProcessed';



const orderConfig = (callback)=>{
	let data = {api_token: Api.getApiToken(), api_user_id: Api.getApiUserId()};
	Http.post(URL_ORDER_CONFIG, data, json=>{
		Api.getDataCB(json, callback);
	});
}
const complainList = (data, callback)=>{
	data.api_token = Api.getApiToken();
	data.api_user_id = Api.getApiUserId();
	Http.post(URL_COMPLAIN_LIST, data, json=>{
		Api.getDataCB(json, callback);
	});
}

export default{
	orderConfig,
	complainList,
	URL_ORDER_CONFIG,
	URL_MODIFY_ORDER_CONFIG,
	URL_COMPLAIN_LIST,
	URL_MARK_PROCESSED
}
